package com.example.myanimator;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.example.myanimator.view.SpiderViewPath;

public class SecondActivity extends AppCompatActivity {

    private SpiderViewPath tv1;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        tv1 = findViewById(R.id.tv_1);
        findViewById(R.id.tv_5).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(SecondActivity.this,ThreeActivity.class));
            }
        });

    }
    private void startActvvity(Class<Activity> mainActivityClass) {
        startActivity(new Intent(SecondActivity.this, mainActivityClass));
    }
}